﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ITXHWEB.Controllers
{
    public partial class VAARTController : ITXController
    {
        [ChildActionOnly]
        public ActionResult MNOFVA(string returnUrl)
        {
            ModelState.Clear();
            AUTOCHK();
            ViewBag.ReturnUrl = returnUrl;
            return PartialView();
        }
        public void AUTOCHK()
        {
            if(MABF.IsVAFReady)
                return;
            PM["ARTST"] = MABF.WFART.Substring(0, 1);
            PM["KOLL"] = MABF.VAF.VAFKOLL;
            PM["ART"] = MABF.WFART.Substring(1, 20); 
            PM["DES"] = MABF.WFART.Substring(1 + 20 + 2 + 10 * 4 + 7, 20);
            VHP.VVA.AUTOCHK(PM); 
        } 
    }
}
